﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BorisTheBlade
{
	/// <summary>
	/// Настройки арбитражного бота
	/// </summary>
	class BotSettings
	{
		public BotSettings()
		{
			m_WorkSecurity = new WrapperSecurities();
			m_WorkSecurity.SecCode = string.Empty;
			m_HedjSecurity = new WrapperSecurities();
			m_HedjSecurity.SecCode = string.Empty;
		}

		private WrapperSecurities m_WorkSecurity;
		public WrapperSecurities WorkSecurity { get { return m_WorkSecurity; } set {m_WorkSecurity = value;} }
		private WrapperSecurities m_HedjSecurity;
		public WrapperSecurities HedjSecurity { get { return m_HedjSecurity; } set { m_HedjSecurity = value; } }

		private string m_WorkLogin;
		public string WorkLogin { get { return m_WorkLogin; } set { m_WorkLogin = value; } }
		private string m_WorkPass;
		public string WorkPass { get { return m_WorkPass; } set { m_WorkPass = value; } }
		private string m_WorkServ;
		public string WorkServ { get { return m_WorkServ; } set { m_WorkServ = value; } }
		private string m_HedjLogin;
		public string HedjLogin { get { return m_HedjLogin; } set { m_HedjLogin = value; } }
		private string m_HedjPass;
		public string HedjPass { get { return m_HedjPass; } set { m_HedjPass = value; } }
		private string m_HedjServ;
		public string HedjServ { get { return m_HedjServ; } set { m_HedjServ = value; } }

		private string m_WorkSec;
		public string WorkSec { get { return m_WorkSec; } set { m_WorkSec = value; } }
		private string m_WorkVol;
		public string WorkVol { get { return m_WorkVol; } set { m_WorkVol = value; IntWorkVol = int.Parse(value); } }
		private string m_HedjSec;
		public string HedjSec { get { return m_HedjSec; } set { m_HedjSec = value; } }
		private string m_KHedj;
		public string KHedj { get { return m_KHedj; } set { m_KHedj = value; FloatKHedj = float.Parse(value); } }

		private string m_SellDisp;
		public string SellDisp { get { return m_SellDisp; } set { m_SellDisp = value; IntSellDisp = int.Parse(value); } }
		private string m_BuyDisp;
		public string BuyDisp { get { return m_BuyDisp; } set { m_BuyDisp = value; IntBuyDisp = int.Parse(value); } }

		private string m_Package;
		public string Package { get { return m_Package; } set { m_Package = value; IntPackage = int.Parse(value); } }
		private string m_Averaging;
		public string Averaging { get { return m_Averaging; } set { m_Averaging = value; IntAveraging = int.Parse(value); } }
		private string m_Max;
		public string Max { get { return m_Max; } set { m_Max = value; IntMax = int.Parse(value); } }
		private string m_Hotelka;
		public string Hotelka { get { return m_Hotelka; } set { m_Hotelka = value; IntHotelka = int.Parse(value); } }

        private string m_Opora;
        public string Opora { get { return m_Opora; } set { m_Opora = value; IntOpora = int.Parse(value); } }
        private string m_BeforeHedj;
        public string BeforeHedj { get { return m_BeforeHedj; } set { m_BeforeHedj = value; IntBeforeHedj = int.Parse(value); } }
        private string m_BeforeWork;
        public string BeforeWork { get { return m_BeforeWork; } set { m_BeforeWork = value; IntBeforeWork = int.Parse(value); } }

		private int m_IntWorkVol;
		public int IntWorkVol { get { return m_IntWorkVol; } set { m_IntWorkVol = value; } }
		private float m_FloatKHedj;
		public float FloatKHedj { get { return m_FloatKHedj; } set { m_FloatKHedj = value; } }

		private int m_IntSellDisp;
		public int IntSellDisp { get { return m_IntSellDisp; } set { m_IntSellDisp = value; } }
		private int m_IntBuyDisp;
		public int IntBuyDisp { get { return m_IntBuyDisp; } set { m_IntBuyDisp = value; } }

		private int m_IntPackage;
		public int IntPackage { get { return m_IntPackage; } set { m_IntPackage = value; } }
		private int m_IntAveraging;
		public int IntAveraging { get { return m_IntAveraging; } set { m_IntAveraging = value; } }
		private int m_IntMax;
		public int IntMax { get { return m_IntMax; } set { m_IntMax = value; } }
		private int m_IntHotelka;
		public int IntHotelka { get { return m_IntHotelka; } set { m_IntHotelka = value; } }

        private int m_IntOpora;
        public int IntOpora { get { return m_IntOpora; } set { m_IntOpora = value; } }
        private int m_IntBeforeHedj;
        public int IntBeforeHedj { get { return m_IntBeforeHedj; } set { m_IntBeforeHedj = value; } }
        private int m_IntBeforeWork;
        public int IntBeforeWork { get { return m_IntBeforeWork; } set { m_IntBeforeWork = value; } }
	}
}
